import request from '@/utils/request'

// 获取销课记录列表
export function getCourseRecords(params) {
  return request.get('/courseRecord/list', params )
}

// 更新销课记录
export function updateCourseRecord(data) {
  return request.post('/courseRecord/update', data)
}

export function getCourseRecordsByStudentId(params) {
  return request.get('/courseRecord/byStudentId', params)
  }

export function getCourseRecordsByTeacherId(params) {
  return request.get('/courseRecord/byTeacherId', params)
  }

export function addCourseRecord(data) {
  return request.post('/courseRecord/insert', data)
}

export function deleteCourseRecord(data) {
  return request.post('/courseRecord/delete', data)
}